SftTree/OCX 7.0

SftTree.List Property

Softel vdm, Inc.

Defines an item's cell text.

Deprecated - Provided for compatibility with earlier versions only - Use Cell.Text instead

Syntax       

Get

VB.NET

Text = object.get_List(ByVal ItemIndex As Integer, ByVal ColIndex As Short)  As String

VB

Text = object.List(ByVal ItemIndex As Long, ByVal ColIndex As Integer)  As String

C#.NET

string Text = object.get_List(int ItemIndex, short ColIndex);

VC++

_bstr_t Text = object->List[long ItemIndex][short ColIndex];
_bstr_t Text = object->GetList(long ItemIndex, short ColIndex);

C

HRESULT object->get_List(long ItemIndex, short ColIndex, BSTR* Text);

Delphi

Text := object.List[ItemIndex : Integer; ColIndex : Smallint]   : WideString;

Put

VB.NET

object.set_List(ByVal ItemIndex As Integer, ByVal ColIndex As Short, ByVal Text As String)

VB

object.List(ByVal ItemIndex As Long, ByVal ColIndex As Integer) = Text  As String

C#.NET

void object.set_List(int ItemIndex, short ColIndex, string Text);

VC++

_bstr_t object->List[long ItemIndex][short ColIndex] = Text;
void object->PutList(long ItemIndex, short ColIndex, _bstr_t Text);

C

HRESULT object->put_List(long ItemIndex, short ColIndex, BSTR Text);

Delphi

object.List[ItemIndex : Integer; ColIndex : Smallint] := Text   : WideString;

object

A SftTree object.

ItemIndex

The zero-based item index.  The combination of ItemIndex and ColIndex describes an individual cell.

ColIndex

The zero-based column number.  The combination of ItemIndex and ColIndex describes an individual cell.

Text

Defines an item's cell text.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Cell.Text instead

The List property defines an item's cell text.

The List property cannot be used to add or insert new items.  The Items.Add and Items.Insert methods add new items.  The text specified when adding new items always defines the cell text for the first or only column (column 0).

The cell text may contain new-line characters (CR-LF) if multi-line cell text is enabled (see Items.Lines and Column.CellMultiline).

If the cell text is empty, the cell in the preceding column may merge into the empty cell, based on the Column.MergeInto property settings.

The cell text alignment can be defined using the Column.CellHAlign and Column.CellVAlign properties.

See Also  SftTree Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com